﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统顶部功能栏目</title>
<link href="/Themes/SysAdmin/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="/Themes/SysAdmin/js/jquery.js"></script>
<script type="text/javascript">
$(function(){
     $('#button').click(function(){ 
     	if(confirm("确认要清除缓存？")){ 
     		var $type=$('#type').val();
     		var $mess=$('#mess');
     		$.post("{:U('Index/cache')}",{type:$type},function(data){
     			alert("缓存清理成功"); 
     		}); 
     	}else{ 
     		return false; 
     	}
     });
	//顶部导航切换
	$(".nav li a").click(function(e){
		
		$(".nav li a.selected").removeClass("selected")
		$(this).addClass("selected");
        if(typeof(window.top.frames["leftFrame"].showMenu) != "undefined") {
            //top.frmleft.showMenu($(this).attr("m"));
            window.top.frames["leftFrame"].showMenu($(this).attr("m"),$(this).attr("title"))
        }	
        location.href=$(this).attr("href");
	});
	
})
</script>
</head>

<body style="background:url(/Themes/SysAdmin/images/topbg.gif) repeat-x;">

    <div class="topleft">
    <a href="main.html" target="_parent"><img src="/Themes/SysAdmin/images/logo.png" title="系统首页" /></a>
    </div>
        
    <ul class="nav">
    	<if condition="authCheck(1)">
	    <li><a href="javascript:;" class="selected" m="Config" target="rightFrame"><img src="/Themes/SysAdmin/images/icon06.png" title="系统管理" /><h2>系统管理</h2></a></li>
	    </if>
	    <if condition="authCheck(2)">
	    <li><a href="javascript:;" m="news" target="rightFrame"><img src="/Themes/SysAdmin/images/icon02.png" title="信息管理" /><h2>信息管理</h2></a></li>
	    </if>
	    <if condition="authCheck(3)">
	    <li><a href="javascript:;"  m="help" target="rightFrame"><img src="/Themes/SysAdmin/images/icon03.png" title="模块设计" /><h2>模块设计</h2></a></li>
	    </if>
	    <if condition="authCheck(4)">
	    <li><a href="javascript:;"  m="love" target="rightFrame"><img src="/Themes/SysAdmin/images/icon04.png" title="常用工具" /><h2>常用工具</h2></a></li>
	    </if>
	    <if condition="authCheck(5)">
	    <li><a href="javascript:;" m="poor" target="rightFrame"><img src="/Themes/SysAdmin/images/icon05.png" title="文件管理" /><h2>文件管理</h2></a></li>
	    </if>
	    <if condition="authCheck(6)">
	    <li><a href="javascript:;" m="team" target="rightFrame"><img src="/Themes/SysAdmin/images/icon01.png" title="工作台" /><h2>工作台</h2></a></li>
	    </if>
    </ul>
            
    <div class="topright">    
	    <ul>
		    <li><span><img src="/Themes/SysAdmin/images/help.png" title="清理缓存" class="helpimg"/></span><a href="javascript:;" id="button">清理缓存</a></li>
		    <li><a href="/">网站首页</a></li>
		    <li><a href="login.html" target="_parent">退出</a></li>
	    </ul>
	    <div class="user">
		    <span>admin</span>
		    <i>消息</i>
		    <b>5</b>
	    </div>
    </div>
</body>
</html>
